package com.example.tool.util.net;


import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created Date 2019/5/15
 *
 * @author liangkun
 * description：接口
 */
public interface ApiService {

    /**
     * 人脸渐变  https://aip.baidubce.com/rest/2.0/face/v1/gradient  ，带参数的url --- post
     *
     * @param
     * @param body
     * @return
//     */
//    @POST("gradient")
//    rx.Observable<FigureResponceBean> sendToWeb(@Query("access_token") String tocken, @Body RequestBody body);

//
    @POST("gradient")
    rx.Observable<FigureResponceBean> sendToWeb(@Query("access_token") String tocken, @Body FigureSendBean body);


}
